//
//  ConnectionLayer.m
//  cocos2dFirstTest
//
//  Created by Daniel Alexander on 6/17/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "ConnectionLayer.h"


@implementation ConnectionLayer

-(id)init{
    if( (self=[super init])) {
        
        CGFloat screenWidth = [[CCDirector sharedDirector] winSizeInPixels].width;
        CGFloat screenHeight = [[CCDirector sharedDirector] winSizeInPixels].height;
        CCLabelTTF *message = [CCLabelTTF labelWithString:@"connecting to server..." fontName:@"font.ttf" fontSize:22];
        message.position = ccp(screenWidth / 2, screenHeight/ 2);
        message.color = ccc3(255, 255, 0);
        [self addChild:message];
        
	}
    return self;
}

- (void) dealloc
{
	// in case you have something to dealloc, do it in this method
	// in this particular example nothing needs to be released.
	// cocos2d will automatically release all the children (Label)
	
	// don't forget to call "super dealloc"
	[super dealloc];
}


@end
